package com.hejia.alauda.entity;

import javax.persistence.Column;

/**
 * 红包策略
 * @author jatin
 *
 */
public class Redpacket extends BaseEntity {
	
	private static final long serialVersionUID = 1L;

	/**
	 * 红包编码：生日红包
	 */
	public static final String CODE_BIRTHDAY = "BIRTHDAY";
	
	@Column(length = 255)
	private String name;// 红包名称

	@Column(length = 20)
	private String code;// 红包编码

	@Column(length = 11)
	private int value;// 红包面额

	@Column(length = 20)
	private String effectDate;// 生效日期，为空时为即时生效。

	@Column(length = 20)
	private String invalidDate;// 失效日期
	
	@Column
	private Integer availableTime;// 有效时间，单位天。与失效日期分开使用，二选一。

	@Column
	private String background;// 红包背景

	@Column
	private String instruction;// 使用说明
	
	@Column
	private Integer withdrawLimit; // 提现额度，单位元
	
	@Column
	private Integer cashRatio; // 提现比，提现一块红包需购买金额，暂不使用
	
	@Column
	private String introduction; // 简介

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public int getValue() {
		return value;
	}

	public void setValue(int value) {
		this.value = value;
	}

	public String getEffectDate() {
		return effectDate;
	}

	public void setEffectDate(String effectDate) {
		this.effectDate = effectDate;
	}

	public String getInvalidDate() {
		return invalidDate;
	}

	public void setInvalidDate(String invalidDate) {
		this.invalidDate = invalidDate;
	}
	
	public Integer getAvailableTime() {
		return availableTime;
	}

	public void setAvailableTime(Integer availableTime) {
		this.availableTime = availableTime;
	}

	public String getBackground() {
		return background;
	}

	public void setBackground(String background) {
		this.background = background;
	}

	public String getInstruction() {
		return instruction;
	}

	public void setInstruction(String instruction) {
		this.instruction = instruction;
	}

	public Integer getWithdrawLimit() {
		return withdrawLimit;
	}

	public void setWithdrawLimit(Integer withdrawLimit) {
		this.withdrawLimit = withdrawLimit;
	}
	
	public Integer getCashRatio() {
		return cashRatio;
	}

	public void setCashRatio(Integer cashRatio) {
		this.cashRatio = cashRatio;
	}
	
	public String getIntroduction() {
		return introduction;
	}

	public void setIntroduction(String introduction) {
		this.introduction = introduction;
	}
}
